<?php 
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Company extends Model {

    const UPDATED_AT ='updatedAt';

    const CREATED_AT = 'createdAt';

	protected $table = 'cmpInfo';

    protected $fillable = ['userId','cmpName','cmpWelcome'];

    protected $dates = [];

    protected function getDateFormat()
    {
        return time();
    }
    //public $timestamps = false;

    public static $rules = [
        // Validation rules
        'cmpName' => 'required|max:40',
    ];
    public static $message = [
        'cmpName.required' => '请输入公司名称',
        'cmpName.max' => '公司名称最长 :max 个字符',
    ];
    // Relationships

}
